package cn.com.code.design.mediator;

import java.util.List;

/**
 * 定义SqlSession 接口
 *
 * @author zhengpei
 * @date 2021/10/24
 */
public interface SqlSession {

  <T> T selectOne(String statement);

  <T> T selectOne(String statement,Object parameter);

  <T> List<T> selectList(String statement);

  <T> List<T> selectList(String statement,Object parameter);

  void close();
}
